<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="include-head.jsp"%>
<body>
<%@include file="include-nav.jsp"%>
<div class="container-fluid">
    <div class="row">
        <%@include file="include-sidebar.jsp"%>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
            <ol class="breadcrumb">
                <li><a href="/index">首页</a></li>
                <li><a href="/admin/query/for/search">数据列表</a></li>
                <li class="active">新增</li>
            </ol>
            <div class="panel panel-default">
                <div class="panel-heading">表单数据<div style="float:right;cursor:pointer;" data-toggle="modal" data-target="#myModal"><i class="glyphicon glyphicon-question-sign"></i></div></div>
                <div class="panel-body">
                    <form role="form" action="/advertisement/update" method="post">
                        <input type="hidden" name="id" value="${requestScope['ADMIN'].id}">
                        <%--当前页传过来--%>
                        <input type="hidden" name="pageNum" value="${param.pageNum}">

                        <div class="form-group">
                            <label for="loginacct">广告内容</label>
                            <input type="text"
                                   value="${requestScope['ADMIN'].name}"
                                   name="name"
                                   class="form-control"
                                   id="loginacct"
                                   placeholder="请输入广告内容">
                        </div>

                        <div class="form-group">
                            <label for="username">图标路径</label>
                            <input
                                    value="${requestScope['ADMIN'].iconpath}"
                                    type="text"
                                    name="iconpath"
                                    class="form-control"
                                    id="username"
                                    placeholder="请输入图标路径"/>
                        </div>
                        <div class="form-group">
                            <label for="email">状态</label>
                            <input type="text"
                                   value="${requestScope['ADMIN'].status}"
                                   name="status"
                                   class="form-control"

                                   placeholder="请输入显示状态">

                        </div>
                        <div class="form-group">
                            <label for="email">地址</label>
                            <input type="text"
                                   value="${requestScope['ADMIN'].url}"
                                   name="url"
                                   class="form-control"
                                   id="email"
                                   placeholder="请输入地址">

                        </div>
                        <div class="form-group">
                            <label for="email">用户id</label>
                            <input type="text"
                                   value="${requestScope['ADMIN'].userid}"
                                   name="userid"
                                   class="form-control"

                                   placeholder="请输入用户id">

                        </div>
                        <button type="submit" class="btn btn-success"><i class="glyphicon glyphicon-plus"></i> 修改</button>
                        <button type="reset" class="btn btn-danger"><i class="glyphicon glyphicon-refresh"></i> 重置</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title" id="myModalLabel">帮助</h4>
            </div>
            <div class="modal-body">
                <div class="bs-callout bs-callout-info">
                    <h4>测试标题1</h4>
                    <p>测试内容1，测试内容1，测试内容1，测试内容1，测试内容1，测试内容1</p>
                </div>
                <div class="bs-callout bs-callout-info">
                    <h4>测试标题2</h4>
                    <p>测试内容2，测试内容2，测试内容2，测试内容2，测试内容2，测试内容2</p>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>
